import request from '@/utils/request'
import {
    technicalApiUrl
} from '../config'

/*
  总工授权
*/

/**
 * 分页查询
 * @param data
 */
export function getGeneralLsit(data) {
    return request({
        url: `${technicalApiUrl}/technical-chief/dataList`,
        method: 'post',
        data
    })
}

/**
 * 新增和编辑
 * @param data
 */
export function addGeneral(data) {
    return request({
        url: `${technicalApiUrl}/technical-chief`,
        method: 'post',
        data
    })
}


/**
 * 查看详情
 * @param data
 */
export function getGeneralDetail(data) {
    return request({
        url: `${technicalApiUrl}/technical-chief/getDetail?id=${data.id}`,
        method: 'get',
    })
}
  /**
 * 删除
 * @param {Object} data
 */
   export function delGeneral(data) {
    return request({
        url: `${technicalApiUrl}/technical-chief/del?id=${data.id}`,
        method: 'get',
    })
}